
#ifndef _NETWORKMANAGER_H_
#define _NETWORKMANAGER_H_

class NetworkManager : public QObject
{
	Q_OBJECT
public:
	~NetworkManager();

	/**********************************************/
	void init(void);

	static NetworkManager* Instance()
	{
		if (!s_Instance)
		{
			s_Instance = new NetworkManager;
		}
		return s_Instance;
	}

	Q_SIGNALS:
	void startNet(void);
	void receiveDepthFrame(QByteArray depthData);

	public Q_SLOTS:
	void socket_receive(QByteArray data);

private:
	explicit NetworkManager(QObject *parent = Q_NULLPTR);

	static NetworkManager *s_Instance;

	QByteArray mRevBuf;
};

#endif

